{include file="/public/header" /}
{include file="/public/navbar" /}
<div class="page">    
    <div class="page__bd">
        <div class="weui-cells">
            <a aria-labelledby="js_cell_itl1_hd js_cell_itl1_bd js_cell_itl1_ft" class="weui-cell weui-cell_access" href="/index">
                <span class="weui-cell__bd" aria-hidden="true">
                    <span style="color:gray;">返回首页</span>
                </span>
                <span class="weui-cell__ft" aria-hidden="true"></span>
            </a>
        </div>
        <div class="weui-cells__title" style="margin:20px 0;font-size:large;font-weight:bold;">我的门店({$b['total'] ?? ''}家)</div>

        <!--{if ($b['rows'] ?? NULL)}-->
        <div class="weui-cells">                
            {foreach $b['rows'] as $key => $row}                
            <div data-key="items" data-id="{$row['id'] ?? ''}" role="link" aria-labelledby="b3_n1 b3_n2" aria-describedby="b3_txt1 b3_txt1_note" class="weui-cell weui-cell_active weui-cell_access">
                <span class="weui-cell__bd" aria-hidden="true">
                    <span class="title" style="font-size:smaller;">{$key+1}：{$row['title'] ?? ''}</span>
                    <div class="dateline" style="font-size:x-small;color:#999">{$row['address'] ?? ''}</div>
                </span>
            </div>                
            {/foreach}                
        </div>
        <!--{else}-->
        <div style="height:200px;line-height:200px;color:#999;text-align:center;">无数据</div>
        <!--{/if}-->
        {if isset($b['pageinfo']) AND $b['pageinfo']}
        <div class="datapage clearfix">
            <nav aria-label="Page navigation example">
                <ul class="pagination">
                    {if $page>=4}
                    <li class="page-item"><a class="page-link" href="?page=1">首页</a></li>
                    {/if}
                    {if $page>1}
                    <li class="page-item"><a class="page-link" href="?page={$page-1}">上一页</a></li>
                    {/if}
                    {foreach $b['pageinfo'] as $key => $pi}
                    {if $page==$pi}
                    <li class="page-item disabled"><a class="page-link">{$pi ?? ''}</a></li>
                    {else}
                    <li class="page-item"><a class="page-link" href="?page={$pi ?? ''}">{$pi ?? ''}</a></li>
                    {/if}
                    {/foreach}
                    {if $page<$b['maxpage']}
                    <li class="page-item"><a class="page-link" href="?page={$page+1}">下一页</a></li>
                    {/if}
                    {if $page<=($b['maxpage']-4)}
                    <li class="page-item"><a class="page-link" href="?page={$b['maxpage'] ?? 0}">尾页</a></li>
                    {/if}
                </ul>
            </nav>
        </div>
        {/if}
    </div>

</div>
<script type="text/javascript">
$(document).ready(function (){
    
});
</script>
{include file="/public/footer" /}